package com.botu.springcloudaibabadiscovery.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hanzeyao
 * @Date: 2019/12/4 16:35
 * @Description:
 */
@RestController
@RefreshScope
public class NacosProviderApp {


    @Value("${user.name}")
    private String name;

    @Value("${server.port}")
    private String port;

    @GetMapping("/echo/test")
    public String demo1(){
        return port+" "+name;
    }


}
